﻿using System.ComponentModel.DataAnnotations;

namespace ImoviesBlazor.Shared
{
    public class LoginParameters
    {
        [Required]
        [StringLength(10, MinimumLength = 2, ErrorMessage = "用户名长度在{1}至{0}字符")]
        public string UserName { get; set; }

        [Required]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "密码长度在{1}至{0}字符")]
        public string Password { get; set; }

        public bool RememberMe { get; set; }
    }
}
